from typing import Optional

from pydantic import Field
from pydantic_settings import BaseSettings


class javaTool(BaseSettings):
    """
    Packaging build information
    """

    PICC_CLIENT_JAR_PATH: Optional[str] = Field(
        description="model-client-1.0-SNAPSHOT.jar",
        default="/picc/java/jdk1.8.0_211/jre/lib/amd64/server/libjvm.so",
    )

    PICC_JAR_PATH: Optional[str] = Field(
        description="ai-center-java-sdk-jar",
        default="/app/api/core/model_runtime/model_providers/picc/jar/ai-center-java-sdk.jar",
    )

    JVM_PATH: Optional[str] = Field(
        description="jvm path, for java runtime",
        default="/app/api/core/model_runtime/model_providers/picc/jar/model-client-1.0-SNAPSHOT.jar"
    )

    PICC_FILE_TEMP_PATH: Optional[str] = Field(
        description="picc model temp file path",
        default="/tmp"
    )

